﻿#ifndef POSTCOMMAND_CMDPOLARCOORDINATEGRAPHSIDEBARVALUEDATACHANGED_H
#define POSTCOMMAND_CMDPOLARCOORDINATEGRAPHSIDEBARVALUEDATACHANGED_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdPolarCoordinateGraphSidebarValueDataChanged : public CommandManager::CommandBase
    {
        Q_OBJECT

    public:
        CmdPolarCoordinateGraphSidebarValueDataChanged();
        ~CmdPolarCoordinateGraphSidebarValueDataChanged();

        bool execute() override;
        void undo() override;
        void redo() override;

        void setPolarCoordinateGraphSidebarValueDataChanged(int mainWindowId, int currentIndex);

    private:
        int m_mainWindowId;
        int m_currentIndex;
    };
} // namespace PostCommand

#endif
